Gui, Add, Button, x0 y0 w30 h20 , w1
Gui, Add, Button, x30 y0 w30 h20 , w2
Gui, Add, Button, x60 y0 w30 h20 , w3
Gui, Add, Button, x90 y0 w30 h20 , w4
Gui, Add, Button, x120 y0 w30 h20 , w5

showh1:=true
showh2:=true
showh3:=true
showh4:=true
showh5:=true

Gui, Add, Button, x0 y20 w30 h20 , h1
Gui, Add, Button, x30 y20 w30 h20 , h2
Gui, Add, Button, x60 y20 w30 h20 , h3
Gui, Add, Button, x90 y20 w30 h20 , h4
Gui, Add, Button, x120 y20 w30 h20 , h5

;~ Gui, Add, Button, x30 y0 w30 h20 , w
;~ Gui, Add, Button, x30 y20 w30 h20 , f
;~ Gui, Add, Button, x148 y77 w30 h20 , r3
;~ Gui, Add, Button, x148 y97 w30 h20 , r4
;~ Gui, Add, Button, x148 y117 w30 h20 , r5

; Generated using SmartGUI Creator 4.0
Gui, Show, x696 y271 h40 w150, login
WinSet,AlwaysOntop,On,login
Gosub ,prepareVariables4Core
Gosub , @prepareVariables
Return

GuiClose:
ExitApp


buttonh1:
showh1:=!showh1
if(showh1)
{
	WinShow,WoW1
}Else{
	WinHide,WoW1
}
return


buttonh2:
showh2:=!showh2
if(showh2)
{
	WinShow,WoW2
}Else{
	WinHide,WoW2
}
return

buttonh3:
showh3:=!showh3
if(showh3)
{
	WinShow,WoW3
}Else{
	WinHide,WoW3
}
return

buttonh4:
showh4:=!showh4
if(showh4)
{
	WinShow,WoW4
}Else{
	WinHide,WoW4
}
return

buttonh5:
showh5:=!showh5
if(showh5)
{
	WinShow,WoW5
}Else{
	WinHide,WoW5
}
return


buttonw1:
ControlSend,,hidder19841,%wname1%
Sleep,500
ControlSend,,{tab},%wname1%
Sleep,500
ControlSend,,z33333333,%wname1%
Sleep,500
ControlSend,,{Enter},%wname1%
Return


buttonw2:
ControlSend,,hidder19842,%wname2%
Sleep,500
ControlSend,,{tab},%wname2%
Sleep,500
ControlSend,,z33333333,%wname2%
Sleep,500
ControlSend,,{Enter},%wname2%
Return

buttonw3:
ControlSend,,hidder19843,%wname3%
Sleep,500
ControlSend,,{tab},%wname3%
Sleep,500
ControlSend,,z33333333,%wname3%
Sleep,500
ControlSend,,{Enter},%wname3%
Return

buttonw4:
ControlSend,,hidder19844,%wname4%
Sleep,500
ControlSend,,{tab},%wname4%
Sleep,500
ControlSend,,z33333333,%wname4%
Sleep,500
ControlSend,,{Enter},%wname4%
Return

buttonw5:
ControlSend,,hidder19845,%wname5%
Sleep,500
ControlSend,,{tab},%wname5%
Sleep,500
ControlSend,,z33333333,%wname5%
Sleep,500
ControlSend,,{Enter},%wname5%
Return

@prepareVariables:
wname1:="WoW1"
wname2:="WoW2"
wname3:="WoW3"
wname4:="WoW4"
wname5:="WoW5"
;wow4's location is x4,y4
;wow5's location is x5,y5
;see Sub prepareVariables4Core in core.ahk

Return

#Include, core.ahk